<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">降级规定时间（天）(降级):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-set_the_time" class="form-control" name="row[set_the_time]" type="number"
            value="{$row.set_the_time|default=''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">本人规定时间消费金额（元）(降级):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-group_id" class="form-control" name="row[group_id]" type="hidden" value="{$ids}">
            <input id="c-category_id" class="form-control" name="row[category_id]" type="hidden" value="{$category_id}">
            <input id="c-range" class="form-control" name="row[downgrade_amount]" type="number"
                value="{$row.downgrade_amount|default=''}">
        </div>
    </div>
    <hr>
    {if $ids==3}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">直推用户数量(升级):</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-direct_num" class="form-control" name="row[direct_num]" type="number"
                    value="{$row.direct_num|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">直推用户等级大于等于自己数量(升级):</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-num" class="form-control" name="row[num]" type="number" value="{$row.num|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">升级规定时间（天）(升级):</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-day" class="form-control" name="row[day]" type="number" value="{$row.day|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">本人规定时间消费金额（元）(升级):</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-personal_amount" class="form-control" name="row[personal_amount]" type="number"
                    value="{$row.personal_amount|default=''}">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">团队规定时间消费金额（元）(升级):</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-team_amount" class="form-control" name="row[team_amount]" type="number"
                    value="{$row.team_amount|default=''}">
            </div>
        </div>
    {/if}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>